using SG;
using Unity.VisualScripting;
using UnityEngine;
using UnityEngine.UI;

public class MessageBox: PanelBase
{
 
    [SerializeField]
    Button m_BtnQuit;
    [SerializeField]
    Text m_textInfo;

    //public Button m_Menu;
    private void Start()
    {
        m_BtnQuit.onClick.AddListener(OnQuit);
    }
 
    private void OnQuit()
    {
        DoClose();
    }

    protected override void OnParam(EventParam param = null)
    {
        var cmd = param as EventParamCommon;
        m_textInfo.text = cmd.GetDataString("string");
    }
}
